import { VAR } from "../introduce.js";

window.onload = function () {
  console.log(111);
  const notice = document.querySelector(".notice p");
  const btn = document.querySelector(".btn");
  let flag = false;
  console.log(btn);
  btn.addEventListener("click", function () {
    console.log(111);
    flag = !flag;
    if (flag) {
      notice.style.opacity = "0";
      btn.classList.add("active");
    } else {
      notice.style.opacity = "1";
      btn.classList.remove("active");
    }
  });
};
